package com.xiaoyi.library.mapper;

import com.xiaoyi.library.pojo.Record;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface RecordMapper {
    @Select("select * from record")
    public List<Record> find();
    @Select("SELECT * FROM record WHERE record_bookname LIKE CONCAT('%', #{record_bookname}, '%')")
    public List<Record> findByName(String record_bookname);

}
